package mobilesearch.data;

import android.os.Parcel;
import android.os.Parcelable;

public class EmailData implements Parcelable {

	private static final String TAG = "EmailData";
	
	private String sendAddress;
	private String recAddress;

	public EmailData(){
		
	}
	
	private EmailData(Parcel in){
		this.sendAddress = in.readString();
		this.recAddress = in.readString();
	}
	
	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(this.sendAddress);
		dest.writeString(this.recAddress);
	}

	public static final Parcelable.Creator<EmailData> CREATOR = new Parcelable.Creator<EmailData>() {

		@Override
		public EmailData createFromParcel(Parcel source) {
			return new EmailData(source);
		}

		@Override
		public EmailData[] newArray(int size) {
			return new EmailData[size];
		}
	};

	public String getSendAddress() {
		return sendAddress;
	}

	public void setSendAddress(String sendAddress) {
		this.sendAddress = sendAddress;
	}

	public String getRecAddress() {
		return recAddress;
	}

	public void setRecAddress(String recAddress) {
		this.recAddress = recAddress;
	}

	
}
